package club.xyes.zkh.ecommerce.commons.vo.payment;

import club.xyes.zkh.ecommerce.commons.entity.TransactionLog;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Create by 郭文梁 2019/4/20 0020 09:14
 * PrePayResultVo
 * 预支付接口返回数据格式
 *
 * @author 郭文梁
 * @data 2019/4/20 0020
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PrePayResultVo<T> {
    public static <T> PrePayResultVo<T> of(TransactionLog log, T additional) {
        return new PrePayResultVo<>(log, additional);
    }

    /**
     * 后台记录的日至信息
     */
    private TransactionLog log;
    /**
     * 其他额外的信息
     */
    private T additional;
}
